//
//  TZHeaderView.m
//  BSBDJ
//
//  Created by user on 16/5/28.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TZHeaderView.h"
#import "TZShowCell.h"
#import "TZShowCell.h"
@interface TZHeaderView() 

@property (nonatomic, weak)TZShowCell *headerView;

@end

@implementation TZHeaderView



- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        TZShowCell *headerView = [[NSBundle mainBundle]loadNibNamed:@"TZShowCell" owner:nil options:nil].lastObject;
        _headerView = headerView;
        [self addSubview:headerView];
    }
    return self;
}

- (void)setItem:(TZEssenceItem *)item{
    _item = item;
    self.headerView.item = item;
}


- (void)layoutSubviews{
    
    [super layoutSubviews];
    _headerView.frame = CGRectMake(0, 0, TZScreenW, 200);
}

@end
